package com.tao.power.Pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {


  private int id;
  private String username;
  private String password;
  private String name;
  private String gender;
  private String telephone;
  private String email;
  @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
  private Date startTime;
  @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
  private Date endTime;
  private String status;
  private String remarks;

  public User(int id, String username, String name, String gender, String telephone, String email, String status, String remarks) {
    this.id = id;
    this.username = username;
    this.name = name;
    this.gender = gender;
    this.telephone = telephone;
    this.email = email;
    this.status = status;
    this.remarks = remarks;
  }
}
